#ifndef _BASICSPI_H
#define _BASICSPI_H

class CBasicSpi
{
public:
	CBasicSpi(int port, int speed, int spiMode);
	int  write(unsigned char *buf, int len); // pSpi->begin(SPI_140_625KHZ , MSBFIRST, 3); 
	int  write(unsigned char data);
	void begin();
	
	int  misoPin();
private:
	int m_nSpiPort;
	int m_nSpeed;
	int m_nSpiMode;

};
 
#endif

